<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
    protected  $table='order';

    protected $primaryKey= 'id';

    public function team_info()
    {
        return $this->hasOne('App\Models\Team', 'id', 'team_id');
    }
    public function goods_info()
    {
        return $this->hasOne('App\Models\Goods', 'id', 'goods_id');
    }
    public function user_info()
    {
        return $this->hasOne('App\user', 'id', 'user_id');
    }
    public function org_info()
    {
        return $this->hasOne('App\Models\Org', 'id', 'org_id');
    }

}